﻿Imports System
Imports System.Data
Imports System.Configuration
Imports System.Web
Imports System.Web.Security
Imports System.Web.UI
Imports System.Web.UI.WebControls
Imports System.Web.UI.WebControls.WebParts
Imports System.Web.UI.HtmlControls
Imports System.Globalization
Imports System.Data.SqlClient
Imports System.Collections
Imports System.Text
Imports System.IO

''' <summary>
''' MyclsDBUtility 的摘要描述
''' </summary>
Partial Public Class MyclsDBUtility

    Private Shared dbUtil As MyclsDBUtility
    Private conn As SqlConnection

    Public Shared Function GetInstance() As MyclsDBUtility
        If dbUtil Is Nothing Then
            dbUtil = New MyclsDBUtility()
        End If

        Return dbUtil
    End Function

    Public Sub New()
        conn = New SqlConnection(System.Configuration.ConfigurationManager.ConnectionStrings("connStr").ConnectionString)
    End Sub

End Class